#include "Listenable.h"

void Listenable::triggerAll(Event& evt)
{
	for (int i = 0; i < listeners.size(); i++)
	{
		listeners[i](evt);
	}
}

void Listenable::registerListener(function<void(Event&)> const listener)
{
	
	listeners.push_back(move(listener));
}
